import Vue from 'vue'
import Router from 'vue-router'
// 样例路由
const Home = () => import('@/components/Home')
const Empty = () => import('@/components/Empty')
// const ExampleElementUI = () => import('@/components/example/ElementUI')
const Classroom = () => import('@/components/classroom/List')

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   component: Home,
    //   name: '',
    //   iconCls: 'el-icon-news',
    //   leaf: true,
    //   children: [
    //     {
    //       path: '/',
    //       component: ExampleElementUI,
    //       name: '仪表盘',
    //       iconCls: 'el-icon-tickets'
    //     },
    //     {
    //       path: '/dashboard',
    //       component: ExampleElementUI,
    //       name: '仪表盘',
    //       iconCls: 'el-icon-tickets'
    //     }
    //   ]
    // },
    {
      path: '/',
      component: Home,
      name: '云监控',
      iconCls: 'el-icon-news',
      children: [
        {
          path: '/',
          component: Empty,
          name: '讲台管理',
          iconCls: 'el-icon-news',
          children: [
            {
              path: '/classroom',
              component: Classroom,
              name: '讲台列表',
              iconCls: 'el-icon-tickets'
            }
          ]
        }
        // {
        //   path: '/',
        //   component: Empty,
        //   name: '命令管理',
        //   iconCls: 'el-icon-mobile-phone',
        //   children: [
        //     {
        //       path: '/page1',
        //       component: ExampleElementUI,
        //       name: '命令分类',
        //       iconCls: 'el-icon-tickets',
        //       children: [
        //         {
        //           path: '/page1112',
        //           component: ExampleElementUI,
        //           name: '命令列表',
        //           iconCls: 'el-icon-tickets'
        //         }
        //       ]
        //     }
        //   ]
        // }
      ]
    }
  ]
})
